package com.ruoyi.system.domain.city;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;

import java.io.Serializable;
import java.util.Date;
import java.util.Objects;

/* loaded from: CityTradeSecond.class */
public class CityTradeSecond implements Serializable {
    private static final long   serialVersionUID = 1;
    @TableId(type = IdType.AUTO)
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private              Long   tradeSecondId;
    @Excel(name = "一级行业id", readConverterExp = "一级行业id")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private              Long   tradeId;
    @Excel(name = "归属行业名称")
    private              String tradeName;
    @Excel(name = "二级行业名称")
    private              String tradeSecondName;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private              Date   createTime;

    public CityTradeSecond(Long tradeSecondId, Long tradeId, String tradeName, String tradeSecondName, Date createTime) {
        this.tradeSecondId = tradeSecondId;
        this.tradeId = tradeId;
        this.tradeName = tradeName;
        this.tradeSecondName = tradeSecondName;
        this.createTime = createTime;
    }

    public CityTradeSecond() {
    }

    @Override // java.lang.Object
    public boolean equals(Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof CityTradeSecond)) {
            return false;
        }
        CityTradeSecond other = (CityTradeSecond) o;
        if (!other.canEqual(this)) {
            return false;
        }
        Object this$tradeSecondId  = getTradeSecondId();
        Object other$tradeSecondId = other.getTradeSecondId();
        if (this$tradeSecondId == null) {
            if (other$tradeSecondId != null) {
                return false;
            }
        }
        else if (!this$tradeSecondId.equals(other$tradeSecondId)) {
            return false;
        }
        Object this$tradeId  = getTradeId();
        Object other$tradeId = other.getTradeId();
        if (this$tradeId == null) {
            if (other$tradeId != null) {
                return false;
            }
        }
        else if (!this$tradeId.equals(other$tradeId)) {
            return false;
        }
        Object this$tradeName  = getTradeName();
        Object other$tradeName = other.getTradeName();
        if (this$tradeName == null) {
            if (other$tradeName != null) {
                return false;
            }
        }
        else if (!this$tradeName.equals(other$tradeName)) {
            return false;
        }
        Object this$tradeSecondName  = getTradeSecondName();
        Object other$tradeSecondName = other.getTradeSecondName();
        if (this$tradeSecondName == null) {
            if (other$tradeSecondName != null) {
                return false;
            }
        }
        else if (!this$tradeSecondName.equals(other$tradeSecondName)) {
            return false;
        }
        Object this$createTime  = getCreateTime();
        Object other$createTime = other.getCreateTime();
        return Objects.equals(this$createTime, other$createTime);
    }

    protected boolean canEqual(Object other) {
        return other instanceof CityTradeSecond;
    }

    @Override // java.lang.Object
    public int hashCode() {
        Object $tradeSecondId   = getTradeSecondId();
        int    result           = (59) + ($tradeSecondId == null ? 43 : $tradeSecondId.hashCode());
        Object $tradeId         = getTradeId();
        int    result2          = (result * 59) + ($tradeId == null ? 43 : $tradeId.hashCode());
        Object $tradeName       = getTradeName();
        int    result3          = (result2 * 59) + ($tradeName == null ? 43 : $tradeName.hashCode());
        Object $tradeSecondName = getTradeSecondName();
        int    result4          = (result3 * 59) + ($tradeSecondName == null ? 43 : $tradeSecondName.hashCode());
        Object $createTime      = getCreateTime();
        return (result4 * 59) + ($createTime == null ? 43 : $createTime.hashCode());
    }

    @Override // java.lang.Object
    public String toString() {
        return "CityTradeSecond(tradeSecondId=" + getTradeSecondId() + ", tradeId=" + getTradeId() + ", tradeName=" + getTradeName() + ", tradeSecondName=" + getTradeSecondName() + ", createTime=" + getCreateTime() + ")";
    }

    public Long getTradeSecondId() {
        return this.tradeSecondId;
    }

    @JsonFormat(shape = JsonFormat.Shape.STRING)
    public void setTradeSecondId(Long tradeSecondId) {
        this.tradeSecondId = tradeSecondId;
    }

    public Long getTradeId() {
        return this.tradeId;
    }

    @JsonFormat(shape = JsonFormat.Shape.STRING)
    public void setTradeId(Long tradeId) {
        this.tradeId = tradeId;
    }

    public String getTradeName() {
        return this.tradeName;
    }

    public void setTradeName(String tradeName) {
        this.tradeName = tradeName;
    }

    public String getTradeSecondName() {
        return this.tradeSecondName;
    }

    public void setTradeSecondName(String tradeSecondName) {
        this.tradeSecondName = tradeSecondName;
    }

    public Date getCreateTime() {
        return this.createTime;
    }

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}
